package com.garvin.enums;

/**
 * @author : garvin
 * @version V1.0
 * @date : 2020年07月07日 13:57
 */
public enum HttpResponseCodeEnum {
    /**
     * http 请求响应编码
     */
    SUCCESS(200, "成功"),
    AUTHORIZED_FAILURE(400, "认证失败"),
    FAIL(500, "失败");


    private Integer code;
    private String message;

    HttpResponseCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
